//
//  SMHMineViewController.swift
//  SMHCommerce
//
//  Created by lvzhao on 2020/1/6.
//  Copyright © 2020 lvzhao. All rights reserved.
//

import UIKit
 

class SMHMineViewController: LZBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setupUI()

        // Do any additional setup after loading the view.
    }
    
    //MARK:setupUI加载UI
    func setupUI()  {
        
        self.view.addSubview(self.mineView)
        self.mineView.snp.makeConstraints { (make) in
            make.edges.equalTo(0)
        }
    }

    
    
    //MARK:懒加载
    lazy var  viewModel: SMHMineViewModel = {
        let viewModel = SMHMineViewModel()
        return viewModel
    }()
    
    
    lazy var mineView: SMHMineView = {
        let mineView = SMHMineView.init(viewModel: self.viewModel)
        return mineView
    }()
    
    override var preferredStatusBarStyle: UIStatusBarStyle{
        
        return .lightContent
    }
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
